applied optimizations