added preliminary code for filtering; missing are: checking for dollar ranges