updating equations, labels, and headers