removed testing console.log calls to clean up code