refactored and used ticket_store
merge