delete unnecessary codes.