format reformat study file