allow integration over r as well