add selection logic for assigning tickets