removed debug console.log()