adds isCompleted logic