update model valid