refactor core statistics procedures