updating models and client