started a tableJoin() function