move alert in case it's undefined...