initial support for passing array index into each array