if there are no ids, return the empty list