fix typesig for sumsquare