created console and alert