removed external SVGs, optimized (corrected) set-checking algo