payment function tweaks