modify cut.java