changed normalization in linearize.c