added optimizations