changed output of scanLine