adding code to support venue f(x)