alloc and free works now