layer from template