making join work