remove unnecessary codes in :new