added alert check