+ fix and improve discretize() method