rework for unset variables