fixing equation