added a function to paycheck