correct implementation of RPC set of equations