switch array for a hash with symbols