remove .to_h to be compatible with older versions of ruby.