added rgamma length. now better fits what is in data