start of model code for more info