add functions to call statistics by chapter (includes dependencies)
cleaning up