change the algorithms for checking for specific expense types