discretize
tests
