normalize function

Normalize