update to model logic