conditional execution of pause method