hash to array