added types to memory manager