added element indexing to const array