deleted method "checkAlert"