implement trimming