started to implement the join