removed alerts, changed console.logs