removed some console.logs used for testing.