re format code