CHANGED:applied the correlation function;