some style optimizings