Joint distribution matching