removed debug console.log statements