reformatting and cleaning