make level 3 and improve geometry edge cases