update model and constants