improved venn-diagram code