trim dependencies