added alert and console.log