comments
scanone: make sure outcome is tested
scanone: replace functions with functional equivalents