create defects, delete defects and iterate defects