The compounds of formula
in which R' is hydrogen, halogen, hydroxy, or alkyl; R2 is substituted or unsubstituted pyridinyl, pyrazinyl, quinolinyl or quinoxalinyl and said substituents are alkyl, alkoxy, alkoxycarbonyl, halogen, cyano or nitro; and n is 2, 3, 4, 5 or 6; and the pharmaceutically acceptable salt thereof, are antipsychotic and anxiolytic agents.