trying to select just distinct ids