stupid mistake - used the wrong variable