remove nlogn approximation