making ref relative