removes message event