rm unnecessary lines