expanded vector indexing script