implemented search by id