if (statsJson.errors.length > 0) {
                        statsJson.errors.map(err => console.log(err));
                    }