start alert function