modify stat code