working scan method