Probable implementation of filter and filterAcc