update equations