testing allPoints function. Needs debugging