backwards compatibility for trim