using a switch statement could reduce the cost of calling job multiple times
starting a seccond, more robust implementation of the idea
some iterations over the same function that shaped the fist obtain implemenation