write ticket