corrected the hash structure