adding get memory