improved code of PAKDD folder