trim package list