checking for duplicates using a hash table

its faster.. duh
dealt with duplicate loop chains