discovered I was using the wrong variable, fixing