clear peripherals before scan