remove stats related code