change so the subquery only returns one column