scan function
local