initialization and stop functions added