New normalise function added