modified the UF.java