need to fix the mapping algorithm, issue with failure to normalize to 1