added alerts for line and corners