removed uneeded length caculator