add type DERIVE for variables, because we are using counters, fix missing space