testing with hash instead of set