clean up and fixing search in payroll period