isolated strange problem with unused line (see comments in code)