added inner join query