update rdc algorithm