update script so as to ignore the nil labels