refactorinng: getDone to isDone