removed alert and console.logs