perfect the layer