change normalizing function