modified:   scanchain.C