code cleaning: remove console.log
add user confirmation