yay line detection