remove extra argument from 'which'