trimming classes serialized better