implements stats