modify Pay.java file