change which to return rather than show
Merge pull request #5646 from WestleyArgentum/which

change which to return rather than show