changes to scanContents for correct findings