The reason and cure of insomnia