fixed up stat_code to turn in