hash approach done