added misc stats calculation