add filtering to finding sample