implement search by id