fixed bug where a tip could be more than 30%