adding length feature