fix confusion in the parser between predicates and functions