separate out lifting code from frange code