friction, tweak sweep code