utility: add math helpers