doc stats cleanup