make length calculation more obvious