reformatted records output; checking domain for syntax