evaluate functions with global scope