got joins working