basic implementation of layer group