clean up spending report code