starting to work on the filtering