curious error when calculating lines to be read from blocks; probably came in there when I reordered stuff for reading color maps