implementation of separate optimizations according to pens;
small improvements to optimizing alghoritms to work more efficiently