implemented statistics