added inner join