reFormat code