changed to isRunning to !isRunning