removing unnecessary packages an options