added min and max to roundtripping