this does not work. original code with 'which' work