change the way of getting memory data