used the wrong join