updated reformatting procedure