fix pointsOfInterest and kirsch functions