make filter for stock control