drw-succssor optimize code