filter preprocessing for performance improvement