New heterocyclic systems based on 5,6,7,8-tetrahydroisoquinolines