minor update to join function so that it excepts if no overlap