switch to using manual index accessing