adding functions for statistics usage