update scanFunctions