alloc init for pointers