speed improvement (geometry checking)