correct length of the object