changed cubic back to quadratic orthog and put in test to see if needs repeating