implement normalization composition algorithm