factor smaller number first so speed decreases continuously