update variable from use of hash to var