named function for source filtering.