console log to alert