adding newmath lib