tested the LocalNormalize function. Also, this serves the final version before trying to use single