add iterator with error