properly filtering data in visual