use hash to eliminate duplicate genes