added setCoordinates to discretization