reformated the scan dict