adding layers rules