add recursive relationship between products