updating instance variables of  memory classes
updating instance variables of  memory classes