added production and local variables