remove duplicate var MessageCollection statement