fixed example prining the wrong variable