geometry and bug algorithm bug fixes
geometry and bug algorithm bug fixes