delete empty elements