added reset method to enable repeated scans