wrote a better join