change console log back to alert