implemented register filter function
basic example for registering a custom filter