adding length method