minor changes to prioritized sweeping