update trim_adapter