revise the discretization algorithm in imple#2