polishing logic