trims code