changed maxDataPoints