clean up source codes