New method of diagnosing cancer