added set of rules for evaluation of functions