change hash to array