removed #to_h since not support in Ruby <2.0