get rid of unused messages