initialization of the main functions and methods