remove unnecessary junk