trim code by compiling different