need to resolve algebraic loop error. need to test with test quad.