move normalise_2 to function