updated package was returning wrong variable