added isPaused check