modified trim to work better (exclude nils) added in the weekly uic load