add length method