fixed old variable error