scanning patterns