rename compact -> trim