mass code reformat