added intersection to inner join