added vertical sync