refactored money heuristic