added raw EC math version