changed fee logic