Removing empty elements