genhd: overlapping variable definition