delete needless codes.