MLDS-04 extracting out range generator function