using bow to reduce search space