generate state label generates another label if label is taken