update to new relations syntax