implement normalize