G invariant inner product and the proof of Schur's lemma