redo and formating