fix double next
preliminary join test