remove unnecessary messages