3rd protocol algorithm