add realize for clockwise pental optimiztion