reduce running time to 2ms per point