clean up code and pre tags