added jamming of layers.