handle empty points