models code reformat