adding formating and sorting to the report