replace *VAR* with var from model