ensure set with variable