refactor filter_one() to use assert_one() for error message handling