got stats to work correctly