inner join sort of works