change start and end point