distanced based point collection function fixed