added functions for filtering keywords