allow indexing into array