ticket func 2