added update equations