refactory ticket