added first.var.name.R and first.var.R