modified how to use memory