adds stats saving