init refactor layer.set