wrong variable used