better geometry API