iris: move variable to the scope where it is being used