inplementing link quality