handle joins