console log did not work with alert in the parenthesis