ran code reformat