working on jtmain model