replacing quick with weighted q-union