clean up formatting, remove extraneous data