automatic filter for enum fields