modify maindata.java for liuym at 0917