add retry for querying result id