optimized structures of setting.js