added to memory management