rm unnecessary codes.