reformatting codes