slave code Scan