changed parameter for initialization and termination