fix memory leak problem; apply the ture footprint points distribution