replaces references in struct with pointers