improve leg grammar to allow operator()