parsed and formatted output according to specs