you can share this normalization code.