refactor code, removed ipss.test.dc, ipss.test.dist