saved lenght to a varible