updated to remove package before installing