added the newmath part