implement the filter for showInLibrary