updating cont'd. speed improvements because we're not scanning the whole horizontal line now.