complete analysis exploration, fix JS mutability