performance bug fixed: factorize. remove tailing space. compiler checking. detail modify.