added discretization