reduction script: no need for debug any more, found the bug