build statistics implemented