added some console.log for testing