prepared xgmath for inclusion