remove unnecessary packages