remove pointers from unions