converted list of packages into loops