reformatting and regrouping