trim card array, too