filtering working perfectly finally