changing to hash