clean up some of the inserted java