convert hash to value array when need be