add select.x etc to join