removed some debugging console.logging