trying to figure out procedure invocation