implement some qexpressions functions