update double lenght