memory manager works now!