added generateShiftedLayers