mod - better query for exists