erased duplicated code in generate payslips.