create model and update structure