add at_q_b (tested)
tested up to WeightedCityblock