changed MAX_MONEY to a long