- correctly typo which was still referring to the scan function