fixed trim logic
add build file