removed debug statement and isRunning boolean