how to determine proper chain length