sub ticket function