implemented energy smear/scale and regression functions