adds normalization

Fixes #2