fixed changePayPeriodFunction