pause resume working perfectly