remove .to_h to support ruby 1.9