added error normalization