start relations code