changing alerts back to console.logs