added function parser to integrate functions