Modyfing the trim condition