added qm.java