generating funcs from parsed rules updated