less naive filtering approach