starting automated variable sweep code