adjust Model.java