wrote custom math package
done:
g