update scanCallback