put the right attibute on vars