cleaned up output ready for submission (again)