use result id function