optimize notification messages