polishing for pause functionality