implemented statistics filter