generalized to all of memory