added exception to hashSet#insert