cleaned up types in the math paarser