added change of intervall based on distance