correct algo detection