fix geometry processing errors
performance
fix performance