removed spurious console.log calls