added support for functions on the query