assign ticket method