switching to hash