corrected norm equation so that negative numbers do not become a problem