implement consecutive of layers