added support for INDEX intrinsic