modified mem_access