updated for normalization