Change relations to pointers