fixed flag for trimming