add 'which' implementation