geometry privatized
made geometry thread safe