eliminated warnings caused by use of obsolete Selection.Elements property