all uses of get functions don't need delim
added tertiary statements
fixed up minor memory leak when evaluating functions