modified the scanClear diagram