changed isDone back to boolean