normalize function defined