added misc.java