rename to_h to dictionary