handle case when there are no labels