implementation of keeping track of stats is working