replaced filter concept with scanning.