change previous pay by coin function