changed if statement in case the user chose to change the span while sweeping