clean up reporting code.