update model script