get rid of variable unset code