write contribution of each layer to eigenkets