added math functions to stack