correct typo and add parameter for normalization factor