use .ptr on alloc'd array