modify local memory accessing