working scan-conversion