minor updates to the filtering functions