allow indexes to accept arrays