                 .attr("opacity", d => d.fake === 1 ? 0 : 1)
                        // setting up the colors dynamically
                .on('click', function(d) {
                if (d.fake == "") {
                let modalTitle = d3.selectAll("h4.modal-title");
                modalTitle.text(d.ip);
                let modalBody = d3.selectAll(".modal-body");
                modalBody.html("Country: " + d.country + "<br>City: " + d.city + "<br>Port: " + d.port + "<br>Organization: " + d.org + "<br>Hostn