refactor model frozen check