some changes optimizations for linaro