resolving the sweep phase