modify statistics handling