use warning instead of alert