Range transformation function implemented