How to add filter code