change the Algorithm of GetReturnValues