update for saving relation data