removing some debug console logs and fixing improperly terminated statements