added processing math functions