minor changes to stats to make code more clear