added done flag