lost ticket function