change local variable names and delete not import if instruction