displays stats & fixed some code