get rid of extraenous join