add pause method