minor style improvements
improved rselect()