Filter function working to prior level