alert step function