math function in parsing