added dual_samples
added draw dual relations
added save dual