starting to add in filter code