text cleanup work