clean up model code formatting