make joins work