created and updated model