some utility functions for expressions