made iif vector compatible