add namespace re and chang the name of math class