replace hardcoded digits in discretizer with package constant