to_h is ruby 2.0 only, use to_hash