setting model states