set next value using a specific method. small refactoring

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