Validated/posterize
organizing code