fixing equations