moved static functions into expressionbuilder