changed for 2nd part of scan.