add draw distribution function