math: better, fix #37