removed unwanted console.dir() debug