remove unused stats functions