normalize function tested