This invention relates to the use of compounds of benzoindazole derivatives salts and solvates thereof for the preparation of a medicament for modulating alpha2 subtype GABA A receptors. The invention further relates to novel heterocyclic compounds and pharmaceutical compositions containing said compounds. In addition the invention relates to the use of compounds of formula (I) salts and solvates thereof for the preparation of a medicament for the treatment of depression, an anxiety disorder, a psychiatric disorder, a learning or cognitive disorder, a sleep disorder, a convulsive or seizure disorder or pain.