changes to master_model beginning