fixing compiler error, also an example of pruning errored messages