optimization for deployment