added dimLum function