remove test console.logs
clean up code