separate out the addFilter function
suggestions
minor changes
suggestions - comments
suggestions