replaced sync hash method with async hash method