keep const-ness of input scan lines.