refactored iris code type