added filtering to remove blank statements