changed to_hash to_h