initialization and exit methods realized