fixing equations format