updated differential equations