update the packages correctly