'employee' was not defined in function def