add relationship attribute