added for filtering functionality