slightly modified fee payment logic