code clean up for format_money