convert hash to array list