set selection to the number
defined new event