set softwareLayerType in a function, prevents lint errors.