reformatting legacy doc