search for ids