added main stop();