check for d3 and insert if not there