imporved code of LittleGeometryHelpers, adapted to new links