added a function to remove package