stats library code removed