make sure the variable is assigned