creates normalize functions