change the starting and ending lengths