work on filter logick