modify piwei's java file