added normalization for messages