updated rpc call