How root canal & composite treatment works