add proper classes and variables setting up mechanism