Note on Cauchy-Schwarz inequality