implement filter mechanism: