adapted to topojson for speedup