fix getEmployeesBy() . . . while loop instead of for