added math helpers