modify the combining dswp to rate code to let it work