outlined needed stats functions from Paul's email