set next value using a specific method. small refactoring

uncle bob approves
Line is too long. [93/80]