used the wrong variable