Estimate for exponential sums and its applications