Optimisation for the type3 sum of squares procedure