add basis for hopfield network