scan function on page 2