faster and leaner

rewrote import comparison method