update Foreign.java