filtering now propely working with periodic measurements