changes in medLayerParameterGroup to use data instead of layer number