changed functions to get list of employees as parameter