changes indexing to direct pointer address access