remove deprecated method ListTrim and replace with ListCompact