updating equations