modify wage function