added comments about fixing bugs for done condition... need to be fixed