fixing formatting for record