generate rights