filter functionality fixed