my RPC efficiency code