copied math files from Enhance repository