improve ,ff and Trim