added console removal in main