added constants and modify ticket structure