removing ast nodes that are always empty