text cleanup and revision