clean up source code