implementation of the stop phase