update code for Math and numeric common method