update function building with expression exclusions