added vertical sync switch