setup of alert