update dynamics